# -*- coding:utf-8 -*-

from django.conf.urls.defaults import patterns, include, url
from django.conf.urls.defaults import *
from django.conf import settings



# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    
    (r'^WebContent/(.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    (r'^login/$', 'django.contrib.auth.views.login'),
    (r'^logout/$','django.contrib.auth.views.logout_then_login'), 
  
    url(r'^index/$' , 'sispes.views.irPrincipal'),
   
    url(r'^PlanoEnsino/$', 'sispes.views.PlanoEnsinoView'),
  
    url(r'^DisciplinaRelacionada/(?P<id>\w{0,10})/$' , 'sispes.views.DisciplinaRelacionadaView'),
    url(r'^DisciplinaRelacionada/(?P<id>\w{0,10})/Excluir/(?P<iditem>\w{0,10})/$', 'sispes.views.ExcluirDisciplinaRelacionada'),
    url(r'^DisciplinaRelacionada/(?P<id>\w{0,10})/Incluir/$' , 'sispes.views.IncluirDisciplinaRelacionada'),
    
    url(r'^Competencia/(?P<id>\w{0,10})/$' , 'sispes.views.CompetenciaView'),
    url(r'^Competencia/(?P<id>\w{0,10})/Excluir/(?P<iditem>\w{0,10})/$', 'sispes.views.ExcluirCompetencia'),
    url(r'^Competencia/(?P<id>\w{0,10})/Incluir/$' , 'sispes.views.IncluirCompetencia'),
    
    url(r'^Habilidade/(?P<id>\w{0,10})/$' , 'sispes.views.HabilidadeView'),
    url(r'^Habilidade/(?P<id>\w{0,10})/Excluir/(?P<iditem>\w{0,10})/$', 'sispes.views.ExcluirHabilidade'),
    url(r'^Habilidade/(?P<id>\w{0,10})/Incluir/$' , 'sispes.views.IncluirHabilidade'),
    
    url(r'^ConteudoProgramatico/(?P<id>\w{0,10})/$' , 'sispes.views.ConteudoProgramaticoView'),
    
    # Examples:
    # url(r'^$', 'Sistema_de_Plano_de_Ensino.views.home', name='home'),
    # url(r'^Sistema_de_Plano_de_Ensino/', include('Sistema_de_Plano_de_Ensino.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)

